home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nejlepší hry
/
Nejlepsi hry.iso
/
hry
/
plane arcade
/
planearcade.exe
/
tank3.bmp
/
input.h
< prev
next >
Wrap
C/C++ Source or Header
|
2004-05-23
|
894b
|
53 lines
#ifndef _INPUT_H_
#define _INPUT_H_
#define KEYDOWN(name, key) (name[key] & 0x100)
//--------------------------------------------------------------------
// Name: INPUT Class
// Desc: ************
//--------------------------------------------------------------------
class INPUT
{
private:
LPDIRECTINPUT8 m_pDirectInput;
LPDIRECTINPUTDEVICE8 m_pKeyboard;
LPDIRECTINPUTDEVICE8 m_pMouse;
public:
//konstruktor
INPUT();
//klavesnica
char KeyDown[256];
bool KeyDOWN[256];
bool KeyPRESS[256];
//mys
bool MouseLeftDown;
bool MouseRightDown;
bool MouseLeftPress;
bool MouseRightPress;
VECTOR3D Mouse;
VECTOR3D MouseRelative;
//inicializacia
void Initialize();
//odstranenie z pamati
void CleanUp();
//ziska hodnoty z klavesnice alebo mysi
void RefreshKeyboard();
void RefreshMouse();
};
#endif //_INPUT_H_